﻿using CTM.Web.Data;
using CTM.Web.Models.Input;
using CTM.Web.Repositories;
using System.Linq;

namespace CTM.Web.Services
{
    public interface IOrgTypeService : IApplicationService<OrgType>
    {
    }

    public class OrgTypeService : ApplicationService<OrgType>, IOrgTypeService
    {
        IUnitOfWork unitOfWork;
        IOrgTypeRepository orgTypeRepository;

        public OrgTypeService(IUnitOfWork unitOfWork, IOrgTypeRepository orgTypeRepository)
            : base(unitOfWork, orgTypeRepository)
        {
            this.unitOfWork = unitOfWork;
            this.orgTypeRepository = orgTypeRepository;
        }
    }
}